package com.lovecws.mumu.demo.spring.session.simple.configuration;

import java.util.Map;

import org.springframework.session.FindByIndexNameSessionRepository;

public class SimpleOperationsSessionRepository implements FindByIndexNameSessionRepository<SimpleExpiringSession>{
	/**
	 * The default time period in seconds in which a session will expire.
	 */
	public static final int DEFAULT_INACTIVE_INTERVAL = 1800;
	
	private Integer maxInactiveIntervalInSeconds = DEFAULT_INACTIVE_INTERVAL;
	
	@Override
	public SimpleExpiringSession createSession() {
		SimpleExpiringSession session=new SimpleExpiringSession();
		session.setMaxInactiveIntervalInSeconds(maxInactiveIntervalInSeconds);
		return session;
	}

	@Override
	public void save(SimpleExpiringSession session) {
		
	}

	@Override
	public SimpleExpiringSession getSession(String id) {
		return null;
	}

	@Override
	public void delete(String id) {
		
	}

	@Override
	public Map<String, SimpleExpiringSession> findByIndexNameAndIndexValue(String indexName, String indexValue) {
		return null;
	}


}
